/*
 * Lenovo Group
 * Copyright (c) 2015-2016 All Rights Reserved.
 * 
 * Project Name:assign-tracer
 * Create Time: 2016年2月24日 下午4:54:52
 */
package com.lenovo.lmrp.server.assigntracer;

import com.lenovo.sdc.framework.rest.RestClientProxy;
import com.lenovo.sdc.framework.util.AttributeBean;

/**
 * 
 * @author songyz
 * @version $Id: RestClientFactory.java, v 0.1 2016年2月24日 下午4:54:52 songyz Exp $
 */
public class RestClientFactory {

	private static final String ITSM_SCAN_PATH = "itsmgateway.scanpath";
	private static final String ITSM_REMOTE_URL = "itsmgateway.url";

	private static RestClientProxy itsmGatewayClient;

	public RestClientFactory(AttributeBean attributes) {
		itsmGatewayClient = new RestClientProxy(attributes.getAttribute(ITSM_SCAN_PATH, ""),
				attributes.getAttribute(ITSM_REMOTE_URL, ""));
	}

	public static RestClientProxy getItsmGatewayClient() {
		return itsmGatewayClient;
	}

}
